package com.worthtech.billportal.bean;

/**
 * WtFavorableId entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class WtFavorableId implements java.io.Serializable {

	// Fields

	private String wtFavorMercode;
	private String wtFavorTrmcode;
	private String wtFavorStarttime;
	private String wtFavorEndtime;
	private Long wtFavorRate;
	private String wtFavorContent;

	// Constructors

	/** default constructor */
	public WtFavorableId() {
	}

	/** minimal constructor */
	public WtFavorableId(String wtFavorMercode, String wtFavorTrmcode,
			String wtFavorStarttime, String wtFavorEndtime, Long wtFavorRate) {
		this.wtFavorMercode = wtFavorMercode;
		this.wtFavorTrmcode = wtFavorTrmcode;
		this.wtFavorStarttime = wtFavorStarttime;
		this.wtFavorEndtime = wtFavorEndtime;
		this.wtFavorRate = wtFavorRate;
	}

	/** full constructor */
	public WtFavorableId(String wtFavorMercode, String wtFavorTrmcode,
			String wtFavorStarttime, String wtFavorEndtime, Long wtFavorRate,
			String wtFavorContent) {
		this.wtFavorMercode = wtFavorMercode;
		this.wtFavorTrmcode = wtFavorTrmcode;
		this.wtFavorStarttime = wtFavorStarttime;
		this.wtFavorEndtime = wtFavorEndtime;
		this.wtFavorRate = wtFavorRate;
		this.wtFavorContent = wtFavorContent;
	}

	// Property accessors

	public String getWtFavorMercode() {
		return this.wtFavorMercode;
	}

	public void setWtFavorMercode(String wtFavorMercode) {
		this.wtFavorMercode = wtFavorMercode;
	}

	public String getWtFavorTrmcode() {
		return this.wtFavorTrmcode;
	}

	public void setWtFavorTrmcode(String wtFavorTrmcode) {
		this.wtFavorTrmcode = wtFavorTrmcode;
	}

	public String getWtFavorStarttime() {
		return this.wtFavorStarttime;
	}

	public void setWtFavorStarttime(String wtFavorStarttime) {
		this.wtFavorStarttime = wtFavorStarttime;
	}

	public String getWtFavorEndtime() {
		return this.wtFavorEndtime;
	}

	public void setWtFavorEndtime(String wtFavorEndtime) {
		this.wtFavorEndtime = wtFavorEndtime;
	}

	public Long getWtFavorRate() {
		return this.wtFavorRate;
	}

	public void setWtFavorRate(Long wtFavorRate) {
		this.wtFavorRate = wtFavorRate;
	}

	public String getWtFavorContent() {
		return this.wtFavorContent;
	}

	public void setWtFavorContent(String wtFavorContent) {
		this.wtFavorContent = wtFavorContent;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof WtFavorableId))
			return false;
		WtFavorableId castOther = (WtFavorableId) other;

		return ((this.getWtFavorMercode() == castOther.getWtFavorMercode()) || (this
				.getWtFavorMercode() != null
				&& castOther.getWtFavorMercode() != null && this
				.getWtFavorMercode().equals(castOther.getWtFavorMercode())))
				&& ((this.getWtFavorTrmcode() == castOther.getWtFavorTrmcode()) || (this
						.getWtFavorTrmcode() != null
						&& castOther.getWtFavorTrmcode() != null && this
						.getWtFavorTrmcode().equals(
								castOther.getWtFavorTrmcode())))
				&& ((this.getWtFavorStarttime() == castOther
						.getWtFavorStarttime()) || (this.getWtFavorStarttime() != null
						&& castOther.getWtFavorStarttime() != null && this
						.getWtFavorStarttime().equals(
								castOther.getWtFavorStarttime())))
				&& ((this.getWtFavorEndtime() == castOther.getWtFavorEndtime()) || (this
						.getWtFavorEndtime() != null
						&& castOther.getWtFavorEndtime() != null && this
						.getWtFavorEndtime().equals(
								castOther.getWtFavorEndtime())))
				&& ((this.getWtFavorRate() == castOther.getWtFavorRate()) || (this
						.getWtFavorRate() != null
						&& castOther.getWtFavorRate() != null && this
						.getWtFavorRate().equals(castOther.getWtFavorRate())))
				&& ((this.getWtFavorContent() == castOther.getWtFavorContent()) || (this
						.getWtFavorContent() != null
						&& castOther.getWtFavorContent() != null && this
						.getWtFavorContent().equals(
								castOther.getWtFavorContent())));
	}

	public int hashCode() {
		int result = 17;

		result = 37
				* result
				+ (getWtFavorMercode() == null ? 0 : this.getWtFavorMercode()
						.hashCode());
		result = 37
				* result
				+ (getWtFavorTrmcode() == null ? 0 : this.getWtFavorTrmcode()
						.hashCode());
		result = 37
				* result
				+ (getWtFavorStarttime() == null ? 0 : this
						.getWtFavorStarttime().hashCode());
		result = 37
				* result
				+ (getWtFavorEndtime() == null ? 0 : this.getWtFavorEndtime()
						.hashCode());
		result = 37
				* result
				+ (getWtFavorRate() == null ? 0 : this.getWtFavorRate()
						.hashCode());
		result = 37
				* result
				+ (getWtFavorContent() == null ? 0 : this.getWtFavorContent()
						.hashCode());
		return result;
	}

}